package com.example.coinhelper.utils;

import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;

import com.example.coinhelper.Adapter.DetailsAdapter;
import com.example.coinhelper.Bean.Details;

import java.util.List;

public class MySharedViewModel extends ViewModel {
    private MutableLiveData<List<Details>> dataList = new MutableLiveData<>();

    public LiveData<List<Details>> getDataList() {
        return dataList;
    }

    public void updateDataList(List<Details> updatedList) {
        dataList.setValue(updatedList);
    }
}
